﻿@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_LayoutVentas.cshtml";
}

@if (TempData["index_failure"] != null)
{
    <div class="error grid_12">
        <h3>Nuevo: @TempData["index_failure"].</h3>
        <a class="hide_btn" href="#"></a>
    </div>
}

<div class="block big">
    <div class="titlebar">
        <h3>Reporte de ventas</h3>
    </div>

    <div class="block_cont">
        @using (Html.BeginForm("Reporte", "ReporteVentas", FormMethod.Post))
        {
            <div class="form">
                <div class="form-row">
                    @Html.Label("", "Fecha Inicial")
                    <div class="validate[required]">
                        @Html.TextBox("cb1", "", new { @type = "date", @class = "text-box single-line" })
                    </div>
                </div>

                <div class="form-row">
                    @Html.Label("", "Fecha Final", new { @type = "date" })
                    <div class="validate[required]">
                        @Html.TextBox("cb2", "", new { @type = "date", @class = "text-box single-line" })
                    </div>
                </div>

                <div class="form-row">
                    @Html.Label("", "Terminal")
                    <div class="validate[required]">
                        @Html.DropDownList("cb3", null, "Elegir", new { @class = "seect" })
                    </div>
                </div>

                <div class="form-row">
                    @Html.Label("", "Formato", new { @style = "width:auto" })
                    <div class="validate[required]">
                        @Html.DropDownList("ddl_Formato",
                    new[] {
                            new SelectListItem() {Text = "PDF", Value="PDF"},
                            new SelectListItem() {Text = "MS EXCEL", Value="Excel"},
                            new SelectListItem() {Text = "MS WORD", Value="Word"},
                            }, "Elegir",
                    new { @style = "select" })
                    </div>
                </div>

                <div class="form-row" style="padding-top:15px">
                    <input type="submit" value="REPORTE" class="submit" />
                </div>
            </div>
        }
    </div>
</div>